package com.zhangzhan.base.utils;

import cn.hutool.core.collection.CollUtil;
import com.zhangzhan.base.exception.SystemException;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author 张一恒
 * @version 1.0
 * @description: 全局校验工具
 * @date 2024/2/5 22:28
 */
@Slf4j
public class AhiVerifyUtils {

    public static void checkObjectArray(List<?> list,String msg){
        if (CollUtil.isEmpty(list)){
            throw new SystemException(msg);
        }
    }

}
